'use strict';

angular.module('myApp.students_matchrecord', [])

.controller('students_matchrecordCtrl',['$scope','$routeParams','$http', 
	
    function($scope,$routeParams,$http){
    	console.log($routeParams.id);
        $http.get('v1/student/'+ $routeParams.id + '/competition').success(function(data){
            $scope.students = data.result['data'];
            $scope.stuid = $routeParams.id;
            console.log(data);
        });
}]);
